//
//  UIButton+JFAdd.h
//  JFWeChat
//
//  Created by JF on 2017/6/12.
//  Copyright © 2017年 JiFeng. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, JF_ButtonEdgeInsetsStyle) {
    
    JF_ButtonEdgeInsetsStyleTop,    // image在上，title在下
    JF_ButtonEdgeInsetsStyleLeft,   // image在左，title在右
    JF_ButtonEdgeInsetsStyleBottom, // image在下，title在上
    JF_ButtonEdgeInsetsStyleRight   // image在右，title在左
};

@interface UIButton (JFAdd)

/**
 设置button的titleLabel和imageView的布局样式，及间距

 @param jf_style titleLabel和imageView的布局样式
 @param jf_space titleLabel和imageView的间距
 */
- (void)jf_layoutButtonWithEdgeInsetsStyle:(JF_ButtonEdgeInsetsStyle)jf_style
                           imageTitleSpace:(CGFloat)jf_space;

@end
